package com.uls.hdh.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import io.lettuce.core.dynamic.annotation.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.uls.hdh.mapper.HdhPollResultsMapper;
import com.uls.hdh.domain.HdhPollResults;
import com.uls.hdh.service.IHdhPollResultsService;

/**
 * 投票统计Service业务层处理
 * 
 * @author hdh
 * @date 2024-11-11
 */
@Service
public class HdhPollResultsServiceImpl implements IHdhPollResultsService 
{
    @Autowired
    private HdhPollResultsMapper hdhPollResultsMapper;

    /**
     * 查询投票统计
     * 
     * @param resultId 投票统计主键
     * @return 投票统计
     */
    @Override
    public HdhPollResults selectHdhPollResultsByResultId(Long resultId)
    {
        return hdhPollResultsMapper.selectHdhPollResultsByResultId(resultId);
    }




    /**
     * 查询投票统计列表
     * 
     * @param hdhPollResults 投票统计
     * @return 投票统计
     */
    @Override
    public List<HdhPollResults> selectHdhPollResultsList(HdhPollResults hdhPollResults)
    {
        return hdhPollResultsMapper.selectHdhPollResultsList(hdhPollResults);
    }

    /**
     * 新增投票统计
     * 
     * @param hdhPollResults 投票统计
     * @return 结果
     */
    @Override
    public int insertHdhPollResults(HdhPollResults hdhPollResults)
    {
        return hdhPollResultsMapper.insertHdhPollResults(hdhPollResults);
    }

    /**
     * 修改投票统计
     * 
     * @param hdhPollResults 投票统计
     * @return 结果
     */
    @Override
    public int updateHdhPollResults(HdhPollResults hdhPollResults)
    {
        return hdhPollResultsMapper.updateHdhPollResults(hdhPollResults);
    }

    /**
     * 批量删除投票统计
     * 
     * @param resultIds 需要删除的投票统计主键
     * @return 结果
     */
    @Override
    public int deleteHdhPollResultsByResultIds(Long[] resultIds)
    {
        return hdhPollResultsMapper.deleteHdhPollResultsByResultIds(resultIds);
    }

    /**
     * 删除投票统计信息
     * 
     * @param resultId 投票统计主键
     * @return 结果
     */
    @Override
    public int deleteHdhPollResultsByResultId(Long resultId)
    {
        return hdhPollResultsMapper.deleteHdhPollResultsByResultId(resultId);
    }
}
